<?php
/**
 * UserRoles table data gateway
 *
 * @uses       Zend_Db_Table_Abstract, Model_ZendDb_DbTable_Base
 * @package    FireFeed
 * @subpackage Model
 */
class Model_ZendDb_DbTable_UserRoles extends Model_ZendDb_DbTable_Base
{
    protected $_name = 'user_roles';
    protected $_primary = array('user_oid', 'role_oid');
    
    protected $_referenceMap = array(
       'User' => array(
           'columns'       => 'user_oid',
           'refTableClass' => 'Model_ZendDb_DbTable_User',
           'refColumns'    => 'oid'
       ),
       'Role' => array(
           'columns'       => 'role_oid',
           'refTableClass' => 'Model_ZendDb_DbTable_Role',
           'refColumns'    => 'oid'
       )
       
    );
}